package com.situ.scientific.dao.impl;

import com.situ.scientific.dao.IAuthDao;
import com.situ.scientific.dao.IExamineDao;
import com.situ.scientific.pojo.Examine;
import com.situ.scientific.util.JDBCUtils;
import org.springframework.jdbc.core.JdbcTemplate;

import java.util.Map;

public class ExamineDaoImpl implements IExamineDao {
    JdbcTemplate template = new JdbcTemplate(JDBCUtils.getDataSource());
    @Override
    public void update(Map map) {
        String sql = "UPDATE examine SET commit=? WHERE id = ?";
        template.update(sql,map.get("commit"),map.get("id"));
    }
}
